import request from "@/utils/request";

export function listData(params) {
  return request({
    url: "/room/banner",
    method: "get",
    params
  });
}

export function roomType() {
  return request({
    url: "/room/typearr?type=1",
    method: "get"
  });
}

export function postData(data) {
  return request({
    url: "/room/banner",
    method: "post",
    data
  });
}

export function postUpdateData(data) {
  return request({
    url: "/room/banner/update",
    method: "post",
    data
  });
}

export function deleteData(data) {
  return request({
    url: "/room/banner",
    method: "delete",
    data
  });
}
